package cn.gz.ibix.adapter;

import android.util.Log;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.gz.ibix.R;
import cn.gz.ibix.bean.Food;

/**
 * 项目名称：QiYiChuAPP
 * <br>类描述：
 * <br>创建人：htliu
 * <br>创建时间：2018/3/24 15:28
 * <br>修改人:
 * <br>修改时间：2018/3/24 15:28
 * <br>修改备注：
 * <br>@version
 */

public class FoodAdapter extends BaseQuickAdapter<Food, BaseViewHolder> {
    public FoodAdapter() {
        super(R.layout.item_food);
    }

    @Override
    protected void convert(BaseViewHolder helper, Food item) {
        helper.setText(R.id.name, item.getName());
        ImageView pic = helper.getView(R.id.pic);
        Log.d(TAG, "helper.getLayoutPosition():" + helper.getLayoutPosition());
//        ImageUtil.getInstance().load(new ImageParam(pic, "").context(pic.getContext()));
    }
}
